package com.mdoya.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.mdoya.domain.AddressBook;

import java.util.List;

/**
 * @author mdoya
 * @version 1.0
 * @description:
 */
public interface AddressBookService {
    void save(AddressBook addressBook);

    void update(LambdaUpdateWrapper<AddressBook> wrapper);

    Integer updateById(AddressBook addressBook);

    AddressBook getById(Long id);

    AddressBook getOne(LambdaQueryWrapper<AddressBook> queryWrapper);

    List<AddressBook> list(LambdaQueryWrapper<AddressBook> queryWrapper);

    /**
     *  根据用户删除对应地址簿
     * @param ids
     * @param userId
     * @return
     */
    Integer deleteByid(Long ids, Long userId);
}
